<template>
  <div>
    <EmitComponent @updateCount="updateCount" />
    <p>当前计数：{{ count }}</p>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import EmitComponent from '@/components/EmitComponent.vue'
const count = ref(10)
const updateCount = (value: number) => {
  count.value = count.value + value
}
</script>
<style scoped></style>
